object Form5: TForm5
  Left = 432
  Top = 234
  Width = 350
  Height = 375
  BorderIcons = [biSystemMenu]
  Caption = #29983#25104
  Color = clBtnFace
  Font.Charset = GB2312_CHARSET
  Font.Color = clWindowText
  Font.Height = -12
  Font.Name = #23435#20307
  Font.Style = []
  Icon.Data = {
    0000010001001010000001002000680400001600000028000000100000002000
    0000010020000000000000000000130B0000130B000000000000000000000000
    000000000000000000000F00BFA01030B0FF0F00C0E00F00AF900F00AF500F00
    AF20000000000000000000000000000000000000000000000000000000000000
    000000000000000000001F18C0F0D0E0C0FF90B8B0FF5080A0FF3058B0FF1030
    A0FF1018A0FF1F08B0D01F0FAF10000000000000000000000000000000000000
    0000000000001F00BF607070C0FFF0E0B0FFF0E0A0FFF0D8A0FFE0D890FFE0D0
    80FFE0D080FF8088B0FF1F0FC0D01F0AAF300000000000000000000000000000
    0000000000001F00D0B0C0C8D0FFF0E8C0FFF0E8B0FFF0E0B0FFF0D8A0FFE0D0
    90FFE0D080FFE0D080FF80A0B0FF1F2FC0F01F09AF7000000000000000000000
    00001F00CF103040C0FFFFF8F0FFF0F0D0FFF0E8C0FFF0E8C0FFF0E0B0FFA0A0
    90FFA09880FFD0C080FFE0D080FFB0B8A0FF3060D0FF1F17C0E01F09AF700000
    00001F00CF6090A0D0FFFFFFFFFFFFF8F0FFF0F0E0FFF0E8D0FFF0E0B0FFD0C8
    A0FFB0A890FFE0D090FFE0D890FFE0D890FFE0D090FFA0B0C0FF3040C0FF1FBF
    7F101FA88FE0E0F8F0FFFFFFFFFFFFFFFFFFFFF8F0FFF0F0E0FFC0B8A0FF9088
    80FFC0B890FFF0E0A0FFF0E0B0FFF0E0B0FFF0E0B0FFE0D8B0FFA0906FF02FAF
    6F6060D8A0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF8F0FFE0E0D0FFC0B8
    A0FFF0E0C0FFF0E8C0FFF0E8C0FFF0E8C0FFF0E8C0FFC0C0B0FFD0A82FB0A04F
    0FE0C0D8C0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFE0E0E0FF909090FFB0B0
    A0FFE0D0C0FFF0E8D0FFF0F0D0FFF0F0D0FFF0F0D0FF40D0F0FF00E8FF506F4F
    6FF0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFF0F0F0FFC0C8C0FFD0D0
    C0FFE0E0D0FF7088D0FFB0B0D0FFFFF8E0FFE0E0E0FF00B0FFF0000000007050
    F0FFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFFA0A0A0FFA0A0A0FFF0E8
    E0FFFFF8F0FF9098E0FF2020A0FFE0E0F0FF90B8E0FF007FFE90000000002F00
    DF604F28E0D08070F0FF9080F0FFD0C0F0FFD0C0F0FF9088C0FFC0C8C0FFFFFF
    FFFFFFFFFFFFE0E8FFFF6060C0FF4040B0FF4F57E0E0007FFF10000000000000
    000000000000000000001F00DF401F00CF401F00CF402F09DF50E0D8FFFFFFFF
    FFFFFFFFFFFFFFFFFFFFD0D8FFFF3030B0FF0F07AFA000000000000000000000
    00000000000000000000000000000000000000000000000000006F3FEF70D0C8
    FFFFFFFFFFFFFFFFFFFFFFF8FFFFA0B0F0FF1038C0FF0F6FEF30000000000000
    0000000000000000000000000000000000000000000000000000000000004F1F
    EF80B090FFFFF0F0FFFFFFF8FFFF5F68F0F02088FFFF1F7FF0B0000000000000
    0000000000000000000000000000000000000000000000000000000000000000
    00004F1AEF305F2FF0A07F5FF0F04F19EF702F8FFF602F9FFF2000000000E1FF
    873EE01FE9F7E00F7D80C007E66BC0010C03C000080080003800800038000001
    7B770001EE0D0001F755800382FEFE031003FF030800FF013800FFCF3800}
  KeyPreview = True
  Menu = MainMenu1
  OldCreateOrder = False
  Position = poOwnerFormCenter
  OnKeyDown = FormKeyDown
  DesignSize = (
    342
    329)
  PixelsPerInch = 96
  TextHeight = 12
  object buexit: TButton
    Left = 292
    Top = 301
    Width = 50
    Height = 20
    Anchors = [akRight, akBottom]
    Caption = #20851#38381
    Default = True
    TabOrder = 1
    OnClick = buexitClick
  end
  object PageControl1: TPageControl
    Left = 0
    Top = 244
    Width = 342
    Height = 55
    ActivePage = TabSheet2
    Anchors = [akLeft, akRight, akBottom]
    TabOrder = 2
    OnChange = PageControl1Change
    object TabSheet1: TTabSheet
      Caption = #29983#25104#25991#26723
      DesignSize = (
        334
        28)
      object Buhtml: TButton
        Left = 262
        Top = 1
        Width = 71
        Height = 25
        Anchors = [akRight]
        Caption = #29983#25104#25991#26723
        Default = True
        TabOrder = 0
        OnClick = BuhtmlClick
      end
      object cbhtml: TComboBox
        Left = 4
        Top = 3
        Width = 210
        Height = 20
        Style = csDropDownList
        Anchors = [akLeft, akTop, akRight]
        ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
        ItemHeight = 12
        ItemIndex = 0
        TabOrder = 1
        Text = 'HTML'#25991#26723
        Items.Strings = (
          'HTML'#25991#26723)
      end
    end
    object TabSheet2: TTabSheet
      Caption = #29983#25104#33050#26412
      ImageIndex = 1
      DesignSize = (
        334
        28)
      object busql: TButton
        Left = 262
        Top = 1
        Width = 71
        Height = 25
        Anchors = [akRight]
        Caption = #29983#25104#33050#26412
        Default = True
        TabOrder = 0
        OnClick = busqlClick
      end
      object CBdb: TCheckBox
        Left = 172
        Top = 5
        Width = 85
        Height = 17
        Anchors = [akTop, akRight]
        Caption = #21019#24314#25968#25454#24211
        Checked = True
        State = cbChecked
        TabOrder = 1
      end
      object cbsql: TComboBox
        Left = 4
        Top = 3
        Width = 157
        Height = 20
        Style = csDropDownList
        Anchors = [akLeft, akTop, akRight]
        ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
        ItemHeight = 12
        ItemIndex = 0
        TabOrder = 2
        Text = #26032#24314#26041#24335
        Items.Strings = (
          #26032#24314#26041#24335
          #28155#21152#26041#24335)
      end
    end
  end
  object PB: TProgressBar
    Left = 0
    Top = 226
    Width = 342
    Height = 16
    Anchors = [akLeft, akRight, akBottom]
    Max = 0
    TabOrder = 3
  end
  object cbtable: TCheckListBox
    Left = 0
    Top = 0
    Width = 342
    Height = 225
    OnClickCheck = cbtableClickCheck
    Align = alTop
    Anchors = [akLeft, akTop, akRight, akBottom]
    Ctl3D = True
    ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
    ItemHeight = 12
    ParentCtl3D = False
    TabOrder = 4
  end
  object script: TMemo
    Left = 40
    Top = 36
    Width = 229
    Height = 141
    ImeName = #20013#25991' ('#31616#20307') - '#25628#29399#25340#38899#36755#20837#27861
    Lines.Strings = (
      '<script type="text/javascript">'
      
        'window.document.getElementById("list").width = window.document.g' +
        'etElementById("list").clientWidth;'
      'move();'
      'function move() '
      '{'
      
        '    if(window.document.getElementById("hideshow").style.display ' +
        '== "none")'
      '    {'
      '    if(document.compatMode == "CSS1Compat")'
      
        '        window.document.getElementById("dtlist").style.top  =  p' +
        'arseInt(document.documentElement.scrollTop); '
      '    if(document.compatMode == "BackCompat")'
      
        '        window.document.getElementById("dtlist").style.top  =  p' +
        'arseInt(document.body.scrollTop);'
      '    }'
      '    window.setTimeout("move()",100);'
      '}'
      'function closeall()'
      '{'
      
        '    for( i=0 ;i < window.document.getElementById("list").childNo' +
        'des.length ;i++)'
      
        '      window.document.getElementById("list").childNodes[i].style' +
        '.display = "none";'
      '}'
      'function openall()'
      '{'
      
        '    for( i=0 ;i < window.document.getElementById("list").childNo' +
        'des.length ;i++)'
      
        '      window.document.getElementById("list").childNodes[i].style' +
        '.display = "block";'
      '}'
      'function showdb(db)'
      '{'
      
        '  window.document.getElementById("hideshow").style.display = "no' +
        'ne";'
      '  closeall(); '
      '  window.document.getElementById(db).style.display = "block" '
      '}'
      'function convert(sValue, sDataType) {'
      '  //'#23558#35201#25490#24207#30340#25968#25454#36716#25442#25104#23545#24212#30340#25968#25454#31867#22411#65292#31532'3'#20010#21442#25968#40664#35748#27809#26377#21363#20026'String'#31867#22411#27604#36739
      
        '  //'#20363#22914'1  <td onclick="sortTable('#39'tableid'#39', 0,'#39'int'#39')" style="curs' +
        'or: pointer">'#21517#31216'</td>'
      
        '  //'#20363#22914'2  <td onclick="sortTable('#39'tableid'#39', 0)" style="cursor: po' +
        'inter">'#21517#31216'</td>'
      '  switch(sDataType) {'
      '    case "int":'
      '      return parseInt(sValue);'
      '    case "float":'
      '      return parseFloat(sValue);'
      '    case "date":'
      '      return new Date(Date.parse(sValue));'
      '    default:'
      '      return sValue.toString();  '
      '  }'
      '}'
      'function generateCompareTRs(iCol, sDataType) {'
      '  //'#38381#21253#27604#36739#20989#25968#65292#29992#20197#25968#32452#30340'sort()'#26041#27861#35843#29992
      '  return function compareTRs(oTR1, oTR2) {'
      '    var vValue1, vValue2;'
      
        '    if(oTR1.cells[iCol].firstChild != oTR1.cells[iCol].lastChild' +
        ') {'
      '      //'#24403#25152#27604#36739#23545#35937#19981#26159#25968#20540#12289#23383#31526#20018#12289#26085#26399#31561#22522#26412#31867#22411#26102#65292#38544#34255#30340'<div />'#26631#35782#33410#28857#21644#27604#36739#33410#28857#19981#30456#31561
      
        '      vValue1 = convert(oTR1.cells[iCol].firstChild.firstChild.n' +
        'odeValue, sDataType);'
      
        '      vValue2 = convert(oTR2.cells[iCol].firstChild.firstChild.n' +
        'odeValue, sDataType);'
      '    }'
      '    else {'
      '      //'#25110#32773#27604#36739#22522#26412#31867#22411#26102#65292#27492#34892'<tr />'#21482#26377#35201#27604#36739#30340#20869#23481#19968#20010#33410#28857#65292#33258#24049#31561#20110#33258#24049
      '      try '
      
        '      {vValue1 = convert(oTR1.cells[iCol].firstChild.nodeValue, ' +
        'sDataType);}catch(e){vValue1="";}'
      '      try'
      
        '      {vValue2 = convert(oTR2.cells[iCol].firstChild.nodeValue, ' +
        'sDataType);}catch(e){vValue2="";}'
      '    }'
      '    //'#27604#36739#22823#23567
      '    if (vValue1 < vValue2) {'
      '      return -1;'
      '    } else if (vValue1 > vValue2) {'
      '      return 1;'
      '    } else {'
      '      return 0;'
      '    }'
      '  };'
      '}'
      'function sortTable(sTableID, iCol, sDataType) {'
      '  //'#33719#21462#35201#25490#24207#34920#26684#30340#25968#25454#34892
      '  var oTable = document.getElementById(sTableID);'
      '  var oTBody = oTable.tBodies[0];'
      '  var colDataRows = oTBody.rows;'
      '  var aTRs = new Array(); //'#21019#24314#19968#20010#25968#32452#23558#20840#37096'<tr />'#30340#25351#38024#25918#20837
      '  '
      '  for (var i=0; i < colDataRows.length; i++) {'
      '    aTRs[i] = colDataRows[i];'
      '  }'
      '   '
      '  if (oTable.sortCol == iCol) {'
      '    //'#22914#26524#24050#32463#23545#27492#21015#25490#36807#19968#27425#24207#65292#20877#25490#21017#30452#25509#20498#24207
      '    aTRs.reverse();'
      '  } else {'
      '    //'#21542#21017#23545#25968#32452#36866#29992'sort'#26041#27861#35843#29992#65292#21442#25968#20026#24050#23450#20041#30340#27604#36739#20989#25968
      '    aTRs.sort(generateCompareTRs(iCol, sDataType));'
      '  }'
      '  //'#21019#24314#25991#26723#30862#29255#32531#23384#25552#39640#20889#20837#36895#24230
      '  var oFragment = document.createDocumentFragment();'
      '  for (var i=0; i < aTRs.length; i++) {'
      '    oFragment.appendChild(aTRs[i]);'
      '  }'
      '  oTBody.appendChild(oFragment);'
      ''
      '  oTable.sortCol = iCol; //'#26631#35782#27492#21015#26159#21542#24050#32463#25490#36807#19968#27425#39034#24207
      '}'
      '</script>')
    ScrollBars = ssBoth
    TabOrder = 0
    Visible = False
  end
  object MainMenu1: TMainMenu
    Left = 79
    Top = 190
    object N1: TMenuItem
      Caption = #20840#36873
      OnClick = N1Click
    end
    object N2: TMenuItem
      Caption = #21453#36873
      OnClick = N2Click
    end
  end
end
